package com.sz.ruichar.manager.timmer;

import javax.annotation.PostConstruct;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

 
/**
 * @author ruichar
 *
 */
@Component
public class AttachHomeJob implements Job
{
	private Logger logger = LoggerFactory.getLogger(AttachHomeJob.class);
//    @Autowired
//    private ICmhDevMsgTimerService devMsgTImerService;
    
    private static AttachHomeJob job;
    
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException
    {
    	logger.info("****************start AttachHomeJob*******");
    	try
    	{
//    		job.devMsgTImerService.collectDelayTime();
    	}
    	catch(Exception e)
    	{
    		logger.error("========{}",e);
    	}
    	
    	logger.info("****************end AttachHomeJob*******");
    }
    
    @PostConstruct
    public void init()
    {
    	job = this;
    }

}
